package com.zl.tby;


import org.noear.solon.Solon;
import org.noear.solon.annotation.SolonMain;
import org.noear.wood.WoodConfig;

@SolonMain
public class App {
    public static void main(String[] args) {
        Solon.start(App.class, args, app -> {
            // 解决 Wood 对 BCrypt 产生的 $ 符号解析成语法
            WoodConfig.isUsingValueExpression = false;
            app.filter(-1, (ctx, chain) -> {
                ctx.autoMultipart(false);
                chain.doFilter(ctx);
            });
        });
        WoodConfig.onExecuteAft(cmd -> {
            System.out.println("[Wood]" + cmd.text + "\r\n" + cmd.paramMap());
        });
    }
}